﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace Model
{
    public class Rights//权限+角色
    {
        [Key]
        public int rid { get; set; }//权限+角色编号
        public int Role_ID { get; set; }//角色编号
        [ForeignKey("Role_ID")]
        public virtual Role Role { get; set; }
        public int Power_ID { get; set; }//权限编号
        [ForeignKey("Power_ID")]
        public virtual Jurisdiction Jurisdiction { get; set; }
        public int Sid { get; set; }//状态
        [ForeignKey("Sid")]
        public virtual RState RState { get; set; }
    }
}
